package com.vhly.ddxdecompiler.dexreader.file.constant;

import com.vhly.ddxdecompiler.dexreader.file.DexFile;

/**
 * Created by IntelliJ IDEA.
 * User: vhly[FR]
 * Date: 2009-10-20
 * Time: 23:53:37
 * Platform: Mac OS X 10.5.8
 *
 * @author vhly[FR]
 */
public class CstBoolean implements CstConstant{

    public static CstBoolean TRUE = makeValue(true);
    public static CstBoolean FALSE = makeValue(false);

    private static CstBoolean makeValue(boolean b) {
        return new CstBoolean(b);
    }

    private boolean value;

    private CstBoolean(boolean b) {
        value = b;
    }

    public boolean getValue(){
        return value;
    }

    public void reloc(DexFile dex) {
    }

    public Object getJavaData() {
        return null;
    }

    public String getJavaType() {
        return "Z";
    }
}
